VERDE 7770 - glxdemo, vlc/glx, weston fail with garbled screen. Elsewhere blurry text rendering when focus lost
https://bugs.freedesktop.org/show_bug.cgi?id=99120
Bug ID: 99120
Summary: VERDE 7770 - glxdemo, vlc/glx, weston fail with
garbled screen. Elsewhere blurry text rendering when focus lost
Product: Mesa
Version: 13.0
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Created attachment 128510
--> https://bugs.freedesktop.org/attachment.cgi?id=128510&action=edit
glxinfo dump
OpenGL renderer string: Gallium 0.4 on AMD CAPE VERDE (DRM 2.46.0 / 4.8.13-300.fc25.x86_64, LLVM 3.8.0)
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770/8760 / R7 250X] [1002:683d]
Launching weston from vconsole freezes the display, switching to another vconsole and killing the process returns to command line.
Launching weston under X opens a window with garbled contents. (attached shot)
Launching glxdemo under X opens a window with yellow square, but background contains garbled noise. resizing the window causes the yellow square to resize and render, but with more and more garbage appearing in the background (attached shots)
Using vlc to play a video after selecting the OpenGL backend produces a fixed garbled screen while the audio plays fine. (Shot attached)
I've experienced similar issues with other X programs which rely on GL(X?), where the main screen appears but is completely corrupted.
another issue (related or not) is blurry text rendering in various programs. I've experienced this with blender (see #38070) and with gnome-shell. Unlike (as I understand it) in #38070, the text is initially rendered properly but when focus is lost it is blurred and as the cursor hovers over other elements in the UI it gets worse and worse. Occasionally the whole UI s redrawn and all the text snaps back, but it's largely unusable. Using software gl instead has no such issues. Shot attached, note properly rendered text on left pane (which has focus) vs. blurred right hand pane (which doesn't have focus).
I've experienced the exact same issues on fc23 which uses mesa 11.x and had (painfully) switched to catalyst which didn't have these issues. A recent upgrade to fc25 means I can't use catalyst anymore, and despite several years passing all these issues have not been resolved in the open source drivers.
Attaching everything I can think of, and glad to provide additional info as needed.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #1 from Larry <[email protected]> --- Created attachment 128511
--> https://bugs.freedesktop.org/attachment.cgi?id=128511&action=edit
blender shot, blurred fonts
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #2 from Larry <[email protected]> --- Created attachment 128512
--> https://bugs.freedesktop.org/attachment.cgi?id=128512&action=edit
glxdemo shot after resize
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #3 from Larry <[email protected]> --- Created attachment 128513
--> https://bugs.freedesktop.org/attachment.cgi?id=128513&action=edit
xorg log
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #4 from Larry <[email protected]> --- Created attachment 128514
--> https://bugs.freedesktop.org/attachment.cgi?id=128514&action=edit
terminal output from launching weston under X
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #5 from Larry <[email protected]> --- Created attachment 128515
--> https://bugs.freedesktop.org/attachment.cgi?id=128515&action=edit
shot of weston window under X
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #6 from Larry <[email protected]> --- Created attachment 128516
--> https://bugs.freedesktop.org/attachment.cgi?id=128516&action=edit
dmesg | grep -i radeon
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #7 from Larry <[email protected]> --- Created attachment 128517
--> https://bugs.freedesktop.org/attachment.cgi?id=128517&action=edit
shot of vlc playing video using openGL backend
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #8 from Larry <[email protected]> --- fc25 currently uses mesa-dri-drivers-13.0.2-2.fc25.x86_64
And I should also point out that glxgears runs fine, both initially when launched and even after resizing.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #9 from Michel Dänzer <[email protected]> --- Does not enabling Option "ShadowPrimary" in xorg.conf help for any of the issues under X?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #10 from Larry <[email protected]> ---
Quoted 1 line
Does not enabling Option "ShadowPrimary" in xorg.conf help for any of the issues under X?
I disabled "ShadowPrimary" and verified the change in xorg.0.log. This does not resolve either issue, not the blurring nor the display garbage. If anything, it introduces some new misbehaviors when in blender.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #11 from Larry <[email protected]> --- Switching to the latest amdgpu driver (drm-next-4.10 branch on ~agd5f/linux) and using the current fc25 xorg-amdgpu server and mesa (13.0.2) still exhibits all the issues described. The commit (f8d9422ef80c512611228449) is just a few days old, with ongoing work on experimental support for Verde (gcn 1.0) in amdgpu.
X did come up without a hitch, which makes me doubt whether future work on amdgpu is likely to address these issues.
What I know so far is that:
glxgears works.
glxdemo doesn't work, but weston (which uses egl) doesn't either. the problem manifests on both the radeonsi driver and the amdgpu driver.
are those data points sufficient to at least triangulate the problem to a specific component in the stack?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #12 from Larry <[email protected]> --- According to phoronix (April 20th) the new experimental support for HD 7000 in amdgpu is basically inherited from the radeonsi driver. If true, that explains why they share same critical issues with respect to SI/Verde.
CCing Tom St Denis from AMD whose commits amdgpu seem to deal with that generation.
I understand that the amdgpu support for HD7700 is experimental (and, lower priority). Please just be aware that the existing drivers you're basing off of have critical issues (I'm posting this on
https://bugs.freedesktop.org/show_bug.cgi?id=99120).
As AMD's cutoff for amdgpu means that HD7700 should be supported eventually, I hope whatever engineering resources are presently allocated to improving the state of linux support from AMD GPU products will deal with these problems (i.e. utterly unusable GL) while the momentum is strong.
Thanks, and Happy new year!
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #13 from Tom St Denis <[email protected]> ---
I wonder if it's a tile mode array problem? Looking at the code for radeon/si.c and amdgpu/gfx_v6_0.c the array configs are different (entries 18-20 don't exist in the radeon side). Briefly looking at a few other entries though they seem to line up textually (assuming the defines map to the same values).
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #14 from Larry <[email protected]> ---
Quoted 5 lines
I wonder if it's a tile mode array problem? Looking at the code for
radeon/si.candamdgpu/gfx_v6_0.cthe array configs are different (entries 18-20 don't exist in the radeon side). Briefly looking at a few other entries though they seem to line up textually (assuming the defines map to the same values).
There *is* a "tiled" effect to the corrupted graphics sometimes (see for example the weston shot attached to bug), so maybe.
But as I mentioned the same problems exist in both drivers and it that makes it
seem unlikely that a comparison of the two would highlight bugs common to
both.
That said, I'm glad to test any branch or solid suggestion and report back. What do you think?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #15 from Tom St Denis <[email protected]> --- Is there a version of mesa for which the radeon KMD works?
Also if you load amdgpu with cg_mask=0 does that help
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #16 from Larry <[email protected]> --- (In reply to Tom St Denis from comment #15)
Quoted 3 lines
Is there a version of mesa for which the radeon KMD works?
Also if you load amdgpu with cg_mask=0 does that help
I know that mesa 12 (fc24) and mesa 13.02 (fc25) do not work. Haven't tried mesa git.
Tried booting with cg_mask, no joy.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #17 from Larry <[email protected]> --- cg_mask=0, that is.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #18 from Tom St Denis <[email protected]> ---
So there is no known point for which this worked even with radeonsi+radeon KMD?
That surprises me.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #19 from Larry <[email protected]> --- (In reply to Tom St Denis from comment #18)
Quoted 4 lines
So there is no known point for which this worked even with radeonsi+radeon KMD?
That surprises me.
What can I tell ya?, I'd love to be wrong. :)
I has the same issues in fc23 about 18 months ago and was using catalyst until fc25 recently came out forcing fc23 into EOL, at which point I had to upgrade for security updates. All the issues are still there, only now I can't use catalyst to sidestep the problem.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #20 from Tom St Denis <[email protected]> --- So Catalyst works but none of the open source KMD/UMD pairs work? Hmm...
I'll see if I can dig up a VERDE board and install an old kernel/catalyst and see what they're doing diff.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #21 from Larry <[email protected]> --- (In reply to Tom St Denis from comment #20)
Quoted 4 lines
So Catalyst works but none of the open source KMD/UMD pairs work? Hmm...
I'll see if I can dig up a VERDE board and install an old kernel/catalyst and see what they're doing diff.
That about sums it up. Thanks for looking into it, much appreciated.
VDPAU also works (mostly), while video GLX gives blocky garbage (in vlc).
In the meantime, I've compiled mesa git and tried it - no change.
Perhaps irrelevant, but the radeon KMD puts this error in dmesg:
[ 4.980751] [drm] fb mappable at 0xE05D9000 [ 4.980753] [drm] vram apper at 0xE0000000 [ 4.980753] [drm] size 8294400 [ 4.980754] [drm] fb depth is 24 [ 4.980755] [drm] pitch is 7680 [ 4.980850] fbcon: radeondrmfb (fb0) is primary device [ 5.161636] [drm:si_dpm_set_power_state [radeon]] *ERROR* si_restrict_performance_levels_before_switch failed [ 5.184528] Console: switching to colour frame buffer device 240x67 [ 5.188443] radeon 0000:01:00.0: fb0: radeondrmfb frame buffer device [ 5.212818] [drm] Initialized radeon 2.46.0 20080528 for 0000:01:00.0 on
minor 0
Please Let me know if there's anything else I can do...
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #22 from Tom St Denis <[email protected]> --- Chatting internally one of our developers also has a VERDE with a DID of 0x683D. He claims that with mesa + radeon kmd it works.
So at this point the possibilities are
1. Different mesa/kmd combination from what he uses. 2. User error (your install is broken) 3. Board damaged (analogue/vbios/etc).
I doubt it's anything analogue and you probably haven't flashed the vbios.
I'm sure our developer is using a combo of mesa git and staging kernel. So if you haven't already could you try our staging (which is a couple of weeks out of date internally but should be fine since there aren't really any significant radeon/si changes pending)
https://cgit.freedesktop.org/~agd5f/linux/log/?h=amd-staging-4.7
and a recent mesa (or mesa git)?
It would help to get the full lspci info for the board too. See if the revision/subsystem id's match up with our developer.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #23 from Larry <[email protected]> ---
Thank you for going to the trouble of checking internally.
(In reply to Tom St Denis from comment #22)
Quoted 6 lines
Chatting internally one of our developers also has a VERDE with a DID of
0x683D. He claims that with mesa + radeon kmd it works.So at this point the possibilities are
1. Different mesa/kmd combination from what he uses.
Ok, I'll try the combination you suggested.
Quoted 1 line
2. User error (your install is broken)
Ok, I'll try a fedora livecd.
Quoted 4 lines
3. Board damaged (analogue/vbios/etc).
I doubt it's anything analogue and you probably haven't flashed the vbios.
I haven't, and remember catalyst works... it must be a software thing.
Quoted 4 lines
<...>
It would help to get the full lspci info for the board too. See if the revision/subsystem id's match up with our developer.
Here it is again:
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770/8760 / R7 250X] [1002:683d]
This and Other details/logs/shots posted in original bug report:
https://bugs.freedesktop.org/show_bug.cgi?id=99120
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #24 from Larry <[email protected]> --- Switching to amd-staging-4.7 with the fc25 provided mesa-13.0.2 didn't change anything. However, Booting into fc25 liveusb (and installing some stuff) shows that weston and glxdemo work just fine. Come to think of it, I was in gnome-shell and there wasn't any font blurring either.
fc25 liveusb uses kernel 4.8.3 and mesa 12.0.3, so at least there's a known-good system.
I downgraded mesa to 12.0.3 on my box and nothing changed. There's obviously something wrong with my installation as you've suggested. And that means it's not really up to you to help debug this further. Thank you very much for your help.
But, I know that both X and mesa have been updated multiple times and can't think what else on my filesystem could be implicated. Any ideas on how I could hunt this down (short of a fresh install)? Can I leverage the liveusb system for deltas somehow? I'd appreciate any suggestions, before I close this as RESOLVED.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #25 from Arek Ruśniak <[email protected]> --- Hi, before you start reinstall whole system you can always try:
*) check this all things with completly new user account *) try switch to modesetting ddx
*) clean xorg.conf.d/* (make backup before)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
--- Comment #26 from Larry <[email protected]> ---
(In reply to Arek Ruśniak from comment #25)
Quoted 3 lines
Hi, before you start reinstall whole system you can always try:
1) check this all things with completely new user account
That worked.
Among the 100s of cruft dot files in my $HOME there's a little xml file called ".drirc", which I don't remember ever touching. It may have been there since before I even got this card (previous was an ancient nvidia). I remember trying PlayOnLinux years ago, maybe it put it there.
I finally narrowed the trouble down to the following two entries:
<driconf>
<device screen="0" driver="radeonsi">
<application name="Default">
<option name="pp_jimenezmlaa" value="7" /> <option name="pp_jimenezmlaa_color" value="8" />
</application>
</device>
</driconf>
"pp_jimenezmlaa" causes block-corrupted garbage, and "pp_jimenezmlaa_color" screws up the fonts with blurring. I've spent 18 months thinking the OSS driver was broken because of this. Is this a bug?
Now the hardware/driver does work, FOSS wins again and I'm \o/ about it.
Thanks again for your help.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
Alex Deucher <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |NOTOURBUGSignature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=99120
Christian König <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #27 from Christian König <[email protected]> --- Mhm, interesting bug. I didn't know that .drirc config options could cause such problems.
Figuring out what put the .drirc file in the home directory might be a good idea, but certainly not a job for the devs.
Anyway let's close this bug report and move on.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel